package com.springstudy.utils;


import jakarta.servlet.ServletContext;
import org.springframework.context.ApplicationContext;

/**
 * @author Tamako
 * @since 2025/1/13 14:44
 */
public class WebApplicationContextUtils {

    public static ApplicationContext getWebApplicationContext(ServletContext servletContext) {
        return (ApplicationContext) servletContext.getAttribute("applicationContext");
    }
}
